home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 25
/
Cream of the Crop 25.iso
/
bbs
/
mhis020.zip
/
OLDBUILD.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-09-18
|
2KB
|
99 lines
@echo off
if %1. == . goto commandLineError
if %2. == . goto noSecondParam
set MEX_INCLUDE=%2
:noSecondParam
if exist %MEX_INCLUDE%\max.mh goto maxOk
echo Can't find file: %MEX_INCLUDE%\max.mh
echo Please pass the directory containing max.mh as the second parameter
echo to this batch file or type:
echo.
echo SET MEX_INCLUDE=[directory name]
echo.
echo before running this batch file, where [directory name] is the name
echo of the directory containing max.mh. Usually, this file is located
echo in a subdirectory of your main max directory called "m".
echo.
goto done
:maxOk
if exist %1\mexp.exe goto mexpOk
echo Can't find file: %1\mexp.exe
goto done
:mexpOk
%1\mexp calljump
if errorlevel 1 goto compileError
%1\mexp calllist
if errorlevel 1 goto compileError
%1\mexp callhdr
if errorlevel 1 goto compileError
%1\mexp callindi
if errorlevel 1 goto compileError
%1\mexp calldir
if errorlevel 1 goto compileError
%1\mexp listdays
if errorlevel 1 goto compileError
%1\mexp callstat
if errorlevel 1 goto compileError
%1\mexp crithdr
if errorlevel 1 goto compileError
%1\mexp critname
if errorlevel 1 goto compileError
%1\mexp critcity
if errorlevel 1 goto compileError
%1\mexp critgkey
if errorlevel 1 goto compileError
%1\mexp critbkey
if errorlevel 1 goto compileError
%1\mexp crittask
if errorlevel 1 goto compileError
%1\mexp critdef
if errorlevel 1 goto compileError
%1\mexp critcall
if errorlevel 1 goto compileError
%1\mexp critlsec
if errorlevel 1 goto compileError
%1\mexp crithsec
if errorlevel 1 goto compileError
%1\mexp critbflg
if errorlevel 1 goto compileError
%1\mexp critgflg
if errorlevel 1 goto compileError
echo.
echo Compilation completed successfully.
echo.
goto done
:commandLineError
echo Compiles all files necessary to run MaxHistory.
echo.
echo Syntax:
echo.
echo BUILD [maximus directory] [mex include directories]
echo.
echo Where [maximus directory] is the name of the directory containing MECCAP.EXE
echo and MEXP.EXE, and [mex include directories] includes the directory containing
echo the file MAX.MH.
echo.
goto done
:compileError
echo.
echo Compilation errors were detected. These errors must be corrected
echo before you can use MaxHistory.
echo.
:done
if %2. == . goto end
set MEX_INCLUDE=
:end